package com.guilin.domain;

import com.guilin.common.annotation.Excel;
import com.guilin.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 论坛主题对象 forum_thread
 * 
 * @author xiaoqi
 * @date 2025-06-20
 */
public class ForumThread extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 主题标题 */
    @Excel(name = "主题标题")
    private String title;

    /** 主题内容 */
    @Excel(name = "主题内容")
    private String content;

    /** 所属板块ID */
    @Excel(name = "所属板块ID")
    private Long categoryId;

    /** 发布者 */
    @Excel(name = "发布者")
    private String userName;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long viewCount;

    /** 回复数 */
    @Excel(name = "回复数")
    private Long replyCount;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long likeCount;

    /** 是否置顶(0=否,1=是) */
    @Excel(name = "是否置顶(0=否,1=是)")
    private Long isSticky;

    /** 是否精华(0=否,1=是) */
    @Excel(name = "是否精华(0=否,1=是)")
    private Long isEssence;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setViewCount(Long viewCount) 
    {
        this.viewCount = viewCount;
    }

    public Long getViewCount() 
    {
        return viewCount;
    }

    public void setReplyCount(Long replyCount) 
    {
        this.replyCount = replyCount;
    }

    public Long getReplyCount() 
    {
        return replyCount;
    }

    public void setLikeCount(Long likeCount) 
    {
        this.likeCount = likeCount;
    }

    public Long getLikeCount() 
    {
        return likeCount;
    }

    public void setIsSticky(Long isSticky) 
    {
        this.isSticky = isSticky;
    }

    public Long getIsSticky() 
    {
        return isSticky;
    }

    public void setIsEssence(Long isEssence) 
    {
        this.isEssence = isEssence;
    }

    public Long getIsEssence() 
    {
        return isEssence;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("categoryId", getCategoryId())
            .append("userName", getUserName())
            .append("viewCount", getViewCount())
            .append("replyCount", getReplyCount())
            .append("likeCount", getLikeCount())
            .append("isSticky", getIsSticky())
            .append("isEssence", getIsEssence())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
